package common

import "github.com/gin-gonic/gin"

func CatchPanic(ctx *gin.Context) {
	err := recover()
	if err != nil {
		ctx.JSON(200, gin.H{
			"code":    500,
			"message": err,
		})
	}
}
